package com.hospital.demo.service.impl.libokun;


import com.hospital.demo.mapper.libokun.DrugMapper;
import com.hospital.demo.model.libokun.Drug;
import com.hospital.demo.service.libokun.DrugService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DrugServiceImpl implements DrugService {

    @Autowired
    DrugMapper drugMapper;

    @Override
    public List<Drug> SelectAllDrug() {
        return drugMapper.SelectAllDrug();
    }

    @Override
    public List<Drug> SelectById(Integer drid) {
        return drugMapper.SelectById(drid);
    }

    @Override
    public Integer DelectDrug(Integer drid) {
        return drugMapper.DelectDrug(drid);
    }

    @Override
    public List<Drug> InsertDrug(Drug drug) {
        return drugMapper.InsertDrug(drug);
    }

    @Override
    public Integer DeleteManyDrug(List<Integer> cidList) {
        return drugMapper.DeleteManyDrug(cidList);
    }

    @Override
    public List<Drug> UpdateDrug(Drug drug) {
        return drugMapper.UpdateDrug(drug);
    }

    @Override
    public List<Drug> SelectByName(String drname) {
        return drugMapper.SelectByName(drname);
    }
}
